﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="IImage.cs" company="">
//   
// </copyright>
// <summary>
//   The Image interface.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Libium.Drawing
{
    using System.IO;

    using Libium.Core;

    /// <summary>
    /// The Image interface.
    /// </summary>
    public interface IImage
    {
        #region Public Properties

        /// <summary>
        /// Gets the mime type.
        /// </summary>
        MimeType MimeType { get; }

        #endregion

        #region Public Methods and Operators

        /// <summary>
        /// The get file.
        /// </summary>
        /// <returns>
        /// The <see cref="IFile"/>.
        /// </returns>
        IFile GetFile();

        /// <summary>
        /// The get stream.
        /// </summary>
        /// <param name="type">
        /// The type.
        /// </param>
        /// <returns>
        /// The <see cref="Stream"/>.
        /// </returns>
        Stream GetStream(ImageStreamType type = ImageStreamType.Bitmap);

        #endregion
    }
}